package com.ccp.dev.form.model;

import com.ccp.dev.core.basic.model.BaseModel;
import com.ccp.dev.form.xml.constant.XmlConstant;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * FormDefTree Model对象
 *
 * @author caishaofan
 */
@XmlRootElement(name = XmlConstant.FORM_DEF_TREE)
@XmlAccessorType(XmlAccessType.NONE)
public class FormDefTree extends BaseModel {
	/**
	 * 同步加载
	 */
	public static Short LOADTYPE_SYNC = 0;
	/**
	 * 异步加载
	 */
	public static Short LOADTYPE_ASYNC = 1;

	@XmlElement
	protected String id;
	
	@XmlElement
	protected String formDefId;

	@XmlElement
	protected String name;

	@XmlElement
	protected String alias;
	protected String formKey="";

	@XmlElement
	protected String treeId;

	@XmlElement
	protected String parentId;

	@XmlElement
	protected String displayField;

	@XmlElement
	protected Short loadType;

	@XmlElement
	protected String rootId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFormDefId() {
		return formDefId;
	}

	public void setFormDefId(String formDefId) {
		this.formDefId = formDefId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getFormKey() {
		return formKey;
	}

	public void setFormKey(String formKey) {
		this.formKey = formKey;
	}

	public String getTreeId() {
		return treeId;
	}

	public void setTreeId(String treeId) {
		this.treeId = treeId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getDisplayField() {
		return displayField;
	}

	public void setDisplayField(String displayField) {
		this.displayField = displayField;
	}

	public Short getLoadType() {
		return loadType;
	}

	public void setLoadType(Short loadType) {
		this.loadType = loadType;
	}

	public String getRootId() {
		return rootId;
	}

	public void setRootId(String rootId) {
		this.rootId = rootId;
	}

	@Override
	public String toString() {
		return "FormDefTree{" +
				"id='" + id + '\'' +
				", formDefId='" + formDefId + '\'' +
				", name='" + name + '\'' +
				", alias='" + alias + '\'' +
				", formKey='" + formKey + '\'' +
				", treeId='" + treeId + '\'' +
				", parentId='" + parentId + '\'' +
				", displayField='" + displayField + '\'' +
				", loadType=" + loadType +
				", rootId='" + rootId + '\'' +
				'}';
	}
}